#region Using
using UnityEngine;
#endregion

[System.Serializable]
public class PoolDescription {
	#region Variables
	public string name;
	public string category;
	
	public GameObject masterPrefab;
	public int initialPoolSize;
	public bool allowRuntimeObjectCreation;
	
	[System.NonSerialized]
	public Pool pool;
	#endregion

	#region Public
	public void Destroy() {
		masterPrefab = null;
		
		if (pool != null) {
			pool.Destroy();
		}
	}
	#endregion
}
